x86: make the pv-only e820 array be dynamic.
authorKeir Fraser <keir@xen.org>
Wed, 13 Apr 2011 15:10:26 +0000 (16:10 +0100)
committerKeir Fraser <keir@xen.org>
Wed, 13 Apr 2011 15:10:26 +0000 (16:10 +0100)
commit87e0dc6ea0a983ae1dbe1f10c300ac0b89b0f23b
treedd2d2ed693c6b26821a54ebe01dcf7311e47339f
parenta222899f96e72ba764338105fb57036282f56e27
x86: make the pv-only e820 array be dynamic.

During creation of the PV domain we allocate the E820 structure to
have the amount of E820 entries on the machine, plus the number three.

This will allow the tool stack to fill the E820 with more than three
entries. Specifically the use cases is , where the toolstack retrieves
the E820, sanitizes it, and then sets it for the PV guest (for PCI
passthrough), this dynamic number of E820 is just right.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/domain.c
xen/arch/x86/mm.c
xen/include/asm-x86/domain.h